<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/MebCoupongroup.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mebcoupongroup.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '券包',
                    name: 'MebCoupongroup',
                    url: "/MebcouponMake/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {"status":"","coupon_batch":"","coupon_name":"","coupon_code":""},
                searchFormOptions: [[
                  {"title":"券包名称","field":"coupon_name","type":"like"},
                  {"title":"优惠券模板名称","field":"coupon_code","type":"like"},
                  {"title":"状态","field":"status","type":"select","dataKey":"MakeCoupon_Status","data":[],},
                  {"title":"批号","field":"coupon_batch","type":"like"}]
                                    ],
                columns: [{field:'coupon_batch',title:'批号',type:'int',width:120,align:'left',sortable:true},
                        {field:'status',title:'状态',type:'int',bind:{ key:'MakeCoupon_Status',data:[]},width:120,align:'left'},
                       {field:'coupon_name',title:'券包名称',type:'string',width:150,align:'left'},
                       {field:'coupon_code',title:'优惠券模板名称',type:'string',width:150,align:'left',bind:{data: []}},
                       {field:'coupon_count',title:'数量',type:'int',width:120,align:'left'},
                       {field: "take_count", title: "已发券数量",type: "int",width: 120,align: "left",},
                       {field:'member_name',title:'领取人',type:'string',width:120,align:'left'},
                       {field:'memberid',title:'领取人手机号',type:'string',width:120,align:'left'},
                       {field:'coupon_note',title:'描述',type:'string',width:120,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'editor',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'edittime',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       ],
                detail: {
                    cnName:"",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
